package com.group.service;

import com.group.user.ChaVo;
import com.group.user.ClientVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;
import java.util.List;

@FeignClient(value = "ks-server")
public interface ClientService {

    @GetMapping("list")
    List list();

    @PostMapping("memberlist")
    List memberlist(ChaVo chaVo);

    @DeleteMapping("memberdel")
    void memberdel(@RequestParam int id);

    @PostMapping("memberadd")
    void memberadd(ClientVo clientVo);

    @GetMapping("memberto")
    ClientVo memberto(@RequestParam int id);

    @GetMapping("memberpass")
    ClientVo memberpass(@RequestParam int id);

    @GetMapping("memberstatus")
    void memberstatus(@RequestParam int id,@RequestParam int status);

    @GetMapping("delAll")
    void delAll(@RequestParam String ids);
}
